package internal

import (
	Web "justweb/pkg"
)

func SignUp(c *Web.Context) {
	req := signUpReq{}
	err := c.ReadJson(req)
	if nil != err {
		_ = c.BadRequestJson(&Web.CommonResponse{
			BizCode: 4,
			Msg:     "invaild request",
		})
		return
	}
	_ = c.OkJson(&Web.CommonResponse{
		Data: 1234,
	})
}

type signUpReq struct {
	Email             string `json:"email"`
	Password          string `json:"password"`
	ConfirmedPassword string `json:"con"`
}
